import pytest

from python_code.calc import Calculator


@pytest.fixture(scope = "module")
def get_calc():
    cal = Calculator()
    print("开始计算")
    yield cal
    print("结束计算")
